<?php    
header('Content-type: application/doc');
header("Content-Disposition:attachment;filename=bia.doc");
?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<style type="text/css">
p{
  font-size:20px;
  font-family:Arial, Helvetica, sans-serif;
}
table, th, td {
    border-style:solid;
    border-width:1px;
	text-align:left;
	font-family:Arial, Helvetica, sans-serif;
	
	width:100%;
	font-size:22px;
	padding:2px;
}
#td1{
	text-align:left;
	}
#td2{
	text-align:right;
	}
	#td3{
	text-align:center;
	}
</style>
<body>
<div  style="margin-top:80px; margin-left:50px; margin-right:50px; margin-bottom:10px; padding-left:0px; padding-right:0px;  width:1000px; text-align:justify">

  <p>&nbsp;</p>
  <p align="center">&nbsp;<b style="font-size:28px;font-family:Arial, Helvetica, sans-serif;">THẨM TRA HỒ SƠ QUYẾT TOÁN CÔNG TRÌNH HOÀN THÀNH</b></p>
   <p align="center">&nbsp;<b style="font-size:20px;font-family:Arial, Helvetica, sans-serif;">TÊN CÔNG TRÌNH:
<?php 
//###########$$$$$$$$$$$$$$$$$$$$$$ PHAN DO DU LIEU
echo $ct ['Ctrinh']['tenctrinh'];
//###########$$$$$$$$$$$$$$$$$$$$$$ PHAN DO DU LIEU
?>
</b></p>
   <p align="center">&nbsp;<b style="font-size:20px;font-family:Arial, Helvetica, sans-serif;">HẠNG MỤC:
<?php 
//###########$$$$$$$$$$$$$$$$$$$$$$ PHAN DO DU LIEU
echo $p['Hangmuc'] ['tenhm'];
//###########$$$$$$$$$$$$$$$$$$$$$$ PHAN DO DU LIEU
?>

   </b></p>
   <p align="center">&nbsp;<b style="font-size:20px; font-family:Arial, Helvetica, sans-serif;">ĐƠN VỊ THI CÔNG:
<?php 
//###########$$$$$$$$$$$$$$$$$$$$$$ PHAN DO DU LIEU
echo $ct ['Dvthicong']['tendvthicong'];
//###########$$$$$$$$$$$$$$$$$$$$$$ PHAN DO DU LIEU
?>
   </b></p>
   <p>&nbsp;</p>
   <p>&nbsp;</p>
  
  <?php
      //#######################PHAN DO DU LIEU
      foreach($bbs as $cancu){
        echo '- ' .$cancu.'<br>';
      }
      //#######################PHAN DO DU LIEU

      ?>

</body>
</html>
